import request from '@/utils/request'

// 查询停车场用户列表
export function listParkUser(query) {
  return request({
    url: '/system/parkUser/list',
    method: 'get',
    params: query
  })
}

// 查询停车场用户详细
export function getParkUser(id) {
  return request({
    url: '/system/parkUser/' + id,
    method: 'get'
  })
}

// 新增停车场用户
export function addParkUser(data) {
  return request({
    url: '/system/parkUser',
    method: 'post',
    data: data
  })
}

// 修改停车场用户
export function updateParkUser(data) {
  return request({
    url: '/system/parkUser',
    method: 'put',
    data: data
  })
}

// 删除停车场用户
export function delParkUser(id) {
  return request({
    url: '/system/parkUser/' + id,
    method: 'delete'
  })
}

// 导出停车场用户
export function exportParkUser(query) {
  return request({
    url: '/system/parkUser/export',
    method: 'get',
    params: query
  })
}